package com.wanmait.recruit.mapper;

import com.wanmait.recruit.pojo.Position;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface PositionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Position record);

    int insertSelective(Position record);

    Position selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Position record);

    int updateByPrimaryKey(Position record);

    List<Position> findAll(@Param("positionName") String positionName, @Param("typeId") Integer typeId);

    int deleteById(Integer id);

    Position findByPositionName(String name);

    ArrayList<Position> findAll2();

    List<Position> selectALLByPositionTypeId(Integer id);

}